import request from "@/utils/request";
/** 会话查询参数 */
export interface SessionQuery {
  current?: number;
  pageSize?: number;
  lawyerId?: number;
  clientId?: string;
  status?: string;
  sessionId?: number;
}
/** 会话表单 */
export interface SessionForm {}
/** 会话对象 */
export interface SessionVO {
  current?: number;
  pages?: number;
  records?: any;
  createdAt?: string;
  size?: number;
  total: number;
}
class sessionAPI {
  /** 查询客户会话列表 */
  static getSession(params: SessionQuery) {
    return request<any, SessionVO>({
      url: "/api/consultation/session/clientList",
      method: "post",
      data: params,
    });
  }
  /** 根据id查询会话 */
  static getOrderList(params: SessionQuery) {
    return request<any, SessionVO>({
      url: `/api/consultation/session/list?current=${params.current}&pageSize=${params.pageSize}&sessionId=${params.sessionId}`,
      method: "get",
      // data: params,
    });
  }
}

export default sessionAPI;
